<template>
  <section class="list-diary">
    <div class="inner">
      <simple-title :title="'转载列表'" :show="false"></simple-title>
      <ul class="content">
        <li v-for="i in list" :key="i.id">
          <diary-item :data="i" :type="6"></diary-item>
        </li>
      </ul>
    </div>
  </section>
</template>

<script>
import SimpleTitle from '@/components/Title/SimpleTitle'
import DiaryItem from '@/components/ListItem/DiaryItem'
export default {
  name: 'DiaryList',
  components: {
      SimpleTitle,
      DiaryItem
  },
   data () {
      return {
          list: []
      }
   },
    created () {
      this.getinfo()
    },
    methods: {
        getinfo () {
            let _this = this
            _this.$post('/api/Diary/DiaryBookList',
                {
                    token:_this.$token,
                    stat:1

                },function (res) {
                    _this.list = res.data
                    console.log(res.data)
                },function (err,errmsg,errcode) {
                    _this.$message.error(errmsg);

                }
            )

        }
    }
}
</script>

<style lang="less" scoped>
  @import "../../../style/style.less";
  .list-diary {
    border: 1px solid @border-color;
    padding: 15px;
    .content {
      padding-top: 15px;
    }
  }
</style>
